from ronglian_sms_sdk import SmsSDK

from celery_tasks.main import app
accId = '8aaf07087f77bf96017fddbe68a73301'
accToken = '6c3d9c1b25654fb58032c7a1fd73526d'
appId = '8aaf07087f77bf96017fddbe698e3308'

@app.task
def sms_code(mobile,code):
    tid = '1'
    datas = (code, '5')
    rest = SmsSDK(accId, accToken,appId).sendMessage(tid, mobile, datas)
    return rest